import request from '@/utils/request'
// 创建订单
export const saveOrder = (data) => {
  return request({
    method: 'POST',
    url: '/front/order/saveOrder',
    data
  })
}
// 发起支付
export const savePayment = (data) => {
  return request({
    method: 'POST',
    url: '/front/pay/saveOrder',
    data
  })
}
// 查询支付结果
export const getPayResult = (params) => {
  return request({
    method: 'GET',
    url: '/front/pay/getPayResult',
    headers: { 'content-type': 'application/json' },
    params
  })
}
